package review.chapter00;

/**
 * Enjoy programming!!!
 * Time: 2021/12/21 -  10:39
 */
public class AutoConvert {
    public static void main(String[] args) {
        byte b = 10;
        int i = 8;
        double d = 81.0;

        int n = b + i;
        System.out.printf("%d\n",n);

        var n1 = d + i * b;//n1是double
        System.out.printf("%.1f\n",n1);

        double d1 = 88.88;
        int n2 = (byte)d1;
        System.out.printf("%d\n", n2);

        byte b1 = (byte)(n1 + d1);
        System.out.printf("%d\n", b1);

    }
}
